// 初始化样式
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body{
    height: 100%;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    color: black;
}
body{
    position: relative;
}

// 设置头部样式
header{
    width: 100%;
    height: 45px;
    position: absolute;
    top: 0;
    left: 0;
    // background-color: red;
    display: flex;
    a:nth-child(1){
        width: 40px;
        height: 100%;
        padding: 10px;
        text-align: center;
    }
    a:nth-child(3){
        width: 40px;
        height: 100%;
        padding: 10px;
         text-align: center;
    }
    .search{
        flex: 1;
        // background-color: pink;
        padding: 5px 0;
        display: flex;
        input{
            width: 100%;
            text-indent: 10px;
            outline: none;
            border: none;
            border-radius: 20px;
            background-color: #f7f7f7;
        }
    }
}
// 设置主体部分样式
.main{
    // width: 100%;
    height: 100%;
    // background-color: pink;
    padding-top: 45px;
    display: flex;
    // 设置左侧分类栏样式
    .left{
        // background-color: greenyellow;
        width: 90px;
        overflow: hidden;
        ul{
            li{
                height: 40px;
                font-size: 14px;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            .active{
                background-color: #fff;
                color: red;
                font-weight: 600;
            }
        }
    }
    .right{
        // background-color: orangered;
        flex: 1;
        overflow: hidden;
        padding: 0 5px;
        .right_wrap{
            >a{
                display: block;
                img{
                    width: 100%;
                }
            }
            ul{
                display: flex;
                flex-wrap: wrap;
                li{
                    width: 33.33%;
                    a{
                        // display: block;
                        img{
                            width: 100%;
                            display: block;
                        }
                    }
                }
            }
        }
    }
}